package co.yixiang.modules.order.aftersale.mapper;

import co.yixiang.common.mapper.CoreMapper;
import co.yixiang.modules.order.aftersale.entity.domain.AfterSale;
import co.yixiang.modules.order.aftersale.entity.vo.AfterSaleVO;
import org.apache.ibatis.annotations.Select;

public interface AfterSaleMapper extends CoreMapper<AfterSale> {

    /**
     * 根据售后编号获取售后VO
     *
     * @param sn 售后编号
     * @return 售后VO
     */
    @Select("SELECT * FROM yx_after_sale WHERE sn=#{sn}")
    AfterSaleVO getAfterSaleVO(String sn);
}
